package com.zutassociation.system.service;

import com.zutassociation.system.domain.Elect;

import java.util.List;

/**
 * @author 黄玉东
 * @version 1.0
 * @date 2021/5/24 15:16
 */
public interface ElectService {
    /**
     * 查询换届选举信息
     *
     * @param electId 换届选举ID
     * @return 换届选举信息
     */
    public Elect selectElectById(Long electId);

    /**
     * 查询上一条信息
     *
     * @param electId 换届选举ID
     * @return 换届选举信息
     */
    public Elect selectUpElect(Long electId);

    /**
     * 查询下一条信息
     *
     * @param electId 换届选举ID
     * @return 换届选举信息
     */
    public Elect selectNextElect(Long electId);

    /**
     * 查询换届选举列表
     *
     * @param elect 换届选举信息
     * @return 换届选举集合
     */
    public List<Elect> selectElectList(Elect elect);

    /**
     * 新增换届选举
     *
     * @param elect 换届选举信息
     * @return 结果
     */
    public int insertElect(Elect elect);

    /**
     * 修改换届选举
     *
     * @param elect 换届选举信息
     * @return 结果
     */
    public int updateElect(Elect elect);

    public int updateElectClick(Elect elect);

    /**
     * 批量删除换届选举
     *
     * @param electId 换届选举ID
     * @return 结果
     */
    public int deleteElectById(Long electId);

    /**
     * 批量删除换届选举信息
     *
     * @param electIds 需要删除的换届选举ID
     * @return 结果
     */
    public int deleteElectByIds(Long[] electIds);
}
